package com.hzhc.controller.storehouse;

import com.alibaba.fastjson2.JSONObject;
import com.hzhc.common.BaseController;
import com.hzhc.service.CntrYardService;
import com.hzhc.utils.ResultUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author dongcy
 * @date 2024/6/24 10:58
 * @description CntrYardController
 */
@RestController
@RequestMapping("/cntrYard")
@RequiredArgsConstructor
public class CntrYardController extends BaseController {

    private final CntrYardService yardService;

    /**
     * 获取堆存区域
     * @return
     */
    @RequestMapping("/getYardArea")
    public ResultUtil<List<JSONObject>> getYardArea() {
        return yardService.getYardArea();
    }


}
